

import config

def getCurrentLanguageAst():
   # First language is the BASE (C, C99, Fortran, Whatever...) language
   if config.CURRENT_LANGUAGES:
       name = config.CURRENT_LANGUAGES[0]
   else:
       name = 'C99' # C99 by default
   myclass = __import__(config.FRONTEND_MODULE + '.' + str(name) + "." + str(name).lower() + '_ast', globals(), locals(), [str(name),])
   return myclass
